Klasse ExportPresenter
java.lang.Object
com.inet.pdfc.presenter.BasePresenter
com.inet.pdfc.presenter.ExportPresenter
- Alle implementierten Schnittstellen:
NamedExtension, Cloneable
- Bekannte direkte Unterklassen:
DifferencesPrintPresenter, ExportFilePresenter
Basic presenter for Exports which generates a graphical comparison result.
Contains some useful methods allowing some settings to be made and applied to the PrintPainter.
Contains some useful methods allowing some settings to be made and applied to the PrintPainter.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen BasePresenter
BasePresenter.ERROR_SOURCE -
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final byteToggle between Left/Right/Both Both document will be presentedstatic final byteToggle between Left/Right/Both Left mean the first documentstatic final byteToggle between Left/Right/Both Right mean the second documentVon Klasse geerbte Felder BasePresenter
LOGGER, MAX_FILENAME_LENGTH -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungprotected com.inet.pdfc.print.PrintPainterConstructs a newPrintPainterwhich can be used to export the result.
This method also sets options on thePrintPainter.voidsetBackgroundColor(Color backgroundColor) Set the background color of the print.voidsetOverlapAlpha(float overlapAlpha) Set the alpha to use for overlapping export.voidsetPaintOverlap(boolean paintOverlap) Set to true if the compared documents must be exported in overlapping mode.voidsetPaintSides(byte sides) Set weather the first or the second of both compared documents must be painted.Von Klasse geerbte Methoden BasePresenter
canInformUserOnErrors, createExportFilename, detachFromModel, executeImmediately, getDefaultExportName, getLastPresenterException, getModel, getParent, getPresenterExceptions, onClear, onComparisonDone, onDataUpdate, onError, onFilterChange, onFinish, onInit, onProgressUpdate, setModel, setParent, spawnVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden NamedExtension
getExtensionName
-
Felddetails
-
PAINT_LEFT
public static final byte PAINT_LEFTToggle between Left/Right/Both Left mean the first document- Siehe auch:
-
PAINT_RIGHT
public static final byte PAINT_RIGHTToggle between Left/Right/Both Right mean the second document- Siehe auch:
-
PAINT_BOTH
public static final byte PAINT_BOTHToggle between Left/Right/Both Both document will be presented- Siehe auch:
-
-
Konstruktordetails
-
ExportPresenter
public ExportPresenter()
-
-
Methodendetails
-
createAndSetupPrintPainter
protected com.inet.pdfc.print.PrintPainter createAndSetupPrintPainter()Constructs a newPrintPainterwhich can be used to export the result.
This method also sets options on thePrintPainter.This method is called once for each pair of PDFs for that a graphical result is exported for.
- Gibt zurück:
- the new constructed PrintPainter.
- Seit:
- i-net PDFC 3.0
-
setBackgroundColor
Set the background color of the print. This color is used for the areas where to page is, between the pages. Set to null to skip painting a background.default is White for PDF and null for PNG or Print.
- Parameter:
backgroundColor- the background color of the PrintPainter- Seit:
- i-net PDFC 3.0
-
setPaintSides
public void setPaintSides(byte sides) Set weather the first or the second of both compared documents must be painted.Default is
PAINT_BOTHThis option has no effect if
setPaintOverlap(boolean)is set to true.- Parameter:
sides- document sides to paint, can bePAINT_LEFT,PAINT_RIGHTorPAINT_BOTH- Seit:
- i-net PDFC 3.0
-
setPaintOverlap
public void setPaintOverlap(boolean paintOverlap) Set to true if the compared documents must be exported in overlapping mode.Default is false.
If this is true, the option
setPaintSides(byte)has no effect.- Parameter:
paintOverlap- the paintOverlap of the PrintPainter- Seit:
- i-net PDFC 3.0
-
setOverlapAlpha
public void setOverlapAlpha(float overlapAlpha) Set the alpha to use for overlapping export. Has only an effect ifsetPaintOverlap(boolean)is true. Must be between 0.0 and 1.0, where 0 means the right document completely overwrites the left document and 1 means the left document overwrites the right document.Default is 0.5.
- Parameter:
overlapAlpha- the overlapAlpha of the PrintPainter- Löst aus:
IllegalArgumentException- if overlapAlpha is invalid- Seit:
- i-net PDFC 3.0
-